<template>
  <a-config-provider :locale="getAntdLocale">
    <app-provider>
      <router-view />
    </app-provider>
  </a-config-provider>
</template>

<script lang="ts" setup>
  import { useLocale } from '/@/locales/useLocale';
  import { AppProvider } from '/@/components/Application';

  import 'dayjs/locale/zh-cn';
  import { useTitle } from './hooks/web/useTitle';
  // support Multi-language
  const { getAntdLocale } = useLocale();

  // Listening to page changes and dynamically changing site titles
  useTitle();
</script>
